reconstruct_path

Turns the output from a search algorithm into a set path

deprecated("Killing")
T[]
reconstruct_path
(
T
)
()

Parameters

came_from
Type: T[]

The positions between start and end

start
Type: T

Starting position to go to

goal
Type: T

The end position

Return Value

Type: T[]

A path from a position to another

See Also

dijkstra_search, a_star_search, breadth_first_search

Meta